package com.power.controller;

import com.power.domain.Area;
import com.power.model.Result;
import com.power.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/admin/area")
public class areaController {
    @Autowired
    private AreaService areaService;
    @GetMapping("/list")
    public Result getListAreaPage()
    {
      List<Area> list=areaService.getList();
        return Result.success(list);
    }


}
